<?php

/*框架系统函数*/
function p($var)
{
    echo '<pre>';
    print_r($var . '6666');
    echo '</pre>';
}

/*url方法*/
function url($var)
{
    $var = explode('/', $var);
    switch (count($var)) {
        case 1:
            $path = '?s=' . MODULE . '/' . CONTROLLER . '/' . $var[0];
            break;
        case 2:
            $path = '?s=' . MODULE . '/' . $var[0] . '/' . $var[1];
            break;
        case 3:
            $path = '?s=' . $var[0] . '/' . $var[1] . '/' . $var[2];
            break;
    }
    return __ROOT__ . $path;

}

